package tree;

/**
 * Created by iss on 17/8/3.
 */
public class Node {

    public Node parent;

    public Node left;

    public Node right;

    public int data;


    public Node(Node parent, Node left, Node right, int data) {
        this.parent = parent;
        this.left = left;
        this.right = right;
        this.data = data;
    }

    @Override
    public String toString() {
        return "data=" + this.data;
    }
}
